﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIAKADCORE.Models
{
    public class DetailPengambilanMatakuliah
    {
        #region Constants

        public const int IdLength = 10;
        public const string IdPrefix = "DPM";
        public const string TableName = "[dbo].[detail_pengambilan_matakuliah]";
        public const string ColumnNameIdDetailPengambilanMatakuliah = "[id_detail_pengambilan_matakuliah]";
        public const string ColumnNameIdMahasiswa = "[id_mahasiswa]";
        public const string ColumnNameIdDetailMatakuliah = "[id_detail_matakuliah]";
        #endregion


        #region Fields
        private string id_detail_pengambilan_matakuliah;
        private string id_detail_matakuliah;
        private string id_mahasiswa;
        #endregion



        #region Properties

        public string IdDetailPengambilanMatakuliah
        {
            get { return this.id_detail_pengambilan_matakuliah; }
            set { this.id_detail_pengambilan_matakuliah = value; }
        }


        public string IdDetailMatakuliah
        {
            get { return this.id_detail_matakuliah; }
            set { this.id_detail_matakuliah = value; }
        }


        public string IdMahasiswa
        {
            get { return this.id_mahasiswa; }
            set { this.id_mahasiswa = value; }
        }

        #endregion


        #region Constructors

        public DetailPengambilanMatakuliah()
        {

        }

        public DetailPengambilanMatakuliah(string id_detail_pengambilan_matakuliah, string id_detail_matakuliah, string id_mahasiswa)
        {
            this.id_detail_pengambilan_matakuliah = id_detail_pengambilan_matakuliah;
            this.id_detail_matakuliah = id_detail_matakuliah;
            this.id_mahasiswa = id_mahasiswa;
        }
    
        #endregion
        public override string ToString()
        {
            return string.Format("ID_DETAIL_PENGAMBILAN_MATAKULIAH: {0} | ID_DETAIL_MATAKULIAH: {1} | ID_MAHASISWA: {2}", this.id_detail_pengambilan_matakuliah, this.id_detail_matakuliah, this.id_mahasiswa);
        }
}
}
